#include <jni.h>
#include <stdio.h>
#include "../java/org/asset/org_asset_Main.h"

JNIEXPORT void JNICALL Java_HelloWorld_printHello(JNIEnv *env, jobject obj) {
    printf("Hello from C!\n");
}


//PS C:\Users\李恒\Desktop\JNI\src\main\C> gcc -shared -fpic -o HelloWorld.dll -I%JAVA_HOME%\include -I%JAVA_HOME%\include\win32 HelloWorld.c
//HelloWorld.c:1:10: fatal error: jni.h: No such file or directory
// #include <jni.h>
//          ^~~~~~~
//compilation terminated.